package com.seal.yoyoshop.service;

import com.seal.yoyoshop.bin.Goods;

import java.util.List;

public interface GoodsService {
    List<Goods> getGoodsListByHotType(int type);

    List<Goods> getGoodsListByTypeId(int typeId);
    List<Goods> getGoodsListByTypeId(int typeId,int page,int size);

    long getCountByTypeId(int typeId);

    long getCountByHotType(int typeId);

    List<Goods> getGoodsListByHotType(int typeId, int page, int size);

    List<Goods> getGoodsListBySearch(String keyword, int page, int size);

    long getCountBySearch(String keyword);

    Goods getGoodById(int goodId);

    List<Goods> getGoodList(Integer page, Integer size);

    long getGoodsCount();

    boolean addGoods(Goods goods);

    boolean deleteGoodsById(int goodsId);

    boolean updateGoods(Goods goods);
}
